package net.blank.ui.core
{
	/**
	 * 事件侦听器
	 * @author blank
	 * 
	 */
	internal class EventListener
	{
		/**
		 * 类型
		 */
		public var type:String;
		
		/**
		 * 侦听器(回调函数)
		 */
		public var listener:Function;
		
		/**
		 * 是否在捕获阶段触发
		 */
		public var useCapture:Boolean;
		
		/**
		 * 优先级
		 */
		public var priority:int;
		
		/**
		 * 是否为弱引用(自动回收)
		 */
		public var useWeakReference:Boolean;
		
		public function EventListener(type:String, listener:Function, useCapture:Boolean=false, priority:int=0, useWeakReference:Boolean=false){
			this.type=type;
			this.listener=listener;
			this.useCapture=useCapture;
			this.priority=priority;
			this.useWeakReference=useWeakReference;
		}
	}
}